import java.util.Scanner;

/*
  @author: 13813
  @date: 2024/11/8 15:55
*/
public class DoWhileTest {
    public static void main(String[] args) {
        /*
          一直接收用户的输入整数，并打印，
          直到用户输入了0,退出不打印
         */
        Scanner scanner = new Scanner(System.in);
        int b = 0;
        do {
            String shu = scanner.nextLine();
            b = Integer.parseInt(shu);
            System.out.println(b);
        } while (b != 0);
    }
}
